package com.tuanzi.loan.web.lazy.statistics;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.statistics.ActivityAverageJoinStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.ActivityAverageJoinStatRequest;
import com.tuanzi.loan.vo.response.statistics.ActivityAverageJoinStatResponse;

/**
* @author weibifeng
*/
public class NewActivityAverageJoinStatistisLazyDataModel extends BaseLazyDataModel<ActivityAverageJoinStatRequest, ActivityAverageJoinStatResponse> {

	private static final long serialVersionUID = -8524751302590740632L;
	
	private ActivityAverageJoinStatService activityAverageJoinStatService = SpringContextHolder.getBean(ActivityAverageJoinStatService.class); 

	public NewActivityAverageJoinStatistisLazyDataModel(ActivityAverageJoinStatRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<ActivityAverageJoinStatResponse> doLoad(
			PageSearcher<ActivityAverageJoinStatRequest> pageSearcher) {
		return activityAverageJoinStatService.listProdChannel(pageSearcher);
	}

}
